<template>
  <section class="apply-wrap">
    <h2 class="title">申请探视</h2>
    <div class="underline"></div>

    <el-card class="apply-card">
      <el-form :model="form" label-width="96px">
        <el-form-item label="探视人">
          <el-input v-model="form.name" placeholder="请输入探视人姓名" />
        </el-form-item>
        <el-form-item label="关系">
          <el-select v-model="form.relation" placeholder="请选择关系">
            <el-option label="儿子" value="儿子" />
            <el-option label="女儿" value="女儿" />
            <el-option label="其他亲属" value="其他亲属" />
          </el-select>
        </el-form-item>
        <el-form-item label="日期">
          <el-date-picker v-model="form.date" type="date" placeholder="选择日期" />
        </el-form-item>
        <el-form-item label="时段">
          <el-select v-model="form.slot">
            <el-option label="上午 9:00-11:30" value="上午 9:00-11:30" />
            <el-option label="下午 14:00-16:30" value="下午 14:00-16:30" />
          </el-select>
        </el-form-item>
        <el-form-item label="备注">
          <el-input type="textarea" v-model="form.note" placeholder="备注信息" />
        </el-form-item>
        <div class="btns">
          <el-button>取消</el-button>
          <el-button type="success">提交申请</el-button>
        </div>
      </el-form>
    </el-card>
  </section>
</template>

<script setup>
import { ref } from 'vue'
const form = ref({ name: '', relation: '', date: '', slot: '', note: '' })
</script>

<style scoped>
.apply-wrap { padding: 32px 20px; }
.title { text-align: center; font-weight: 800; font-size: 24px; color: #222; }
.underline { width: 80px; height: 4px; background: #4a7b26; border-radius: 2px; margin: 10px auto 24px; }
.apply-card { max-width: 680px; margin: 0 auto; }
.btns { display: flex; gap: 10px; justify-content: flex-end; }
</style>